<template>
    <div>
        <el-form :model="cate_form"
            class="search_prod"
            label-width="120px">
            <el-form-item label="课程类别">

                <el-col :span="4">
                    <el-col :span="16"
                        class="search_input_width">
                        <el-input size="small"
                            clearable
                            placeholder="请输入课程类别名称"
                            v-model="cate_form.title"></el-input>
                    </el-col>
                </el-col>

            </el-form-item>
            <el-form-item>
                <el-row class="tl">
                    <el-col :span="24">
                        <el-button size="mini"
                            type="primary"
                            @click="cate_search_btn">查询</el-button>
                        <el-button size="mini"
                            type="primary"
                            @click="del_search_btn">一键清除</el-button>
                    </el-col>
                </el-row>
            </el-form-item>
        </el-form>
    </div>
</template>
<script>
export default {
  name: "cate_search",
  data() {
    return {
      cate_form: {
        title: ""
      }
    };
  },
  props: {},
  components: {},
  methods: {
    del_search_btn() {
      this.cate_form = {
        title: ""
      };

      this.$emit("send_search", this.cate_form);
    },
    cate_search_btn() {
      this.$emit("send_search", this.cate_form);
    }
  }
};
</script>
<style scoped>
</style>
